﻿using SkiaAndModel.NodeAbstract;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SkiaAndModel.Models
{
    public class DataPointer : INode
    {
        public Guid Id { get; set; } 
        public string Name { get; set; }

        public NodeType NodeType { get; set; } = NodeType.DataPointer;

        /// <summary>
        /// 全局变量||局部变量||字面量
        /// </summary>
        public string Scope { get; set; }

        /// <summary>
        /// ["全局变量","系统参数","设备配置","输入刷新配置"]
        /// </summary>
        public List<string> Symbol { get; set; }

        /// <summary>
        /// 当前值
        /// </summary>
        /// <returns></returns>
       // public IPlcMember value { get; set; } = new PlcMember();

        //或者直接使用时在获取
        //getValue(Symbol)

        //如果是字面量

        public int GetHeight()
        {
            return 0;
        }
    }
}
